import request from './request'
// 示例
// export const loginApi = (params) => request.post()

// 登录接口
export const loginApi = (params) => request.post('auth/login', params)

// 获取登录用户信息
export const getUserInfo = () => request.post('/auth/getUserByToken')

// 查询顶级分类
// export const getTopCategory = () => request.get('/category/topCategory')

// 查询商品接口
export const getAdminGoods = (params) => request.get('/goods', { params })

// 商品详情
export const getGoodsInfo = (params) => request.get('/goods/info', { params })